package com.adong.test;

import com.adong.ext.ExtConfig;

import org.junit.Test;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * @author adong
 */
public class ExtDemo {
    @Test
    public void demo() {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ExtConfig.class);

        applicationContext.publishEvent(new ApplicationEvent(new String("我发布的事件")) {
        });
    }

}
